import axios from "@/utils/http";

const path = "/api/shop"
export enum API {
    ceate = path + "/ceate",
    list = path + "/list",
    upDataShop = path + "/upDataShop"
}

export const ceateShop = <T>(parmas: any): Promise<T> => {
    return axios.post(API.ceate, parmas) as Promise<T>;
};

export const getShopList = <T>(parmas: any): Promise<T> => {
    return axios.get(API.list, parmas) as Promise<T>;
};
export const upDataShop = <T>(parmas: any): Promise<T> => {
    return axios.post(API.upDataShop, parmas) as Promise<T>;
};

